//
//  ItemDetail.swift
//  demo2
//
//  Created by raymond on 2022/5/17.
//

import SwiftUI

struct ItemDetail: View {
  var symbolName: String
  var body: some View {
    VStack {
      Text(symbolName)
        .font(.system(.largeTitle, design: .rounded))
      
      Image(systemName: symbolName)
        .resizable()
        .scaledToFit()
        .symbolRenderingMode(.hierarchical)
        .foregroundColor(.accentColor)
    }
    .padding()
  }
}

struct ItemDetail_Previews: PreviewProvider {
  static var previews: some View {
    ItemDetail(symbolName: "magnifyingglass")
  }
}
